﻿using System.Windows;
using System.Windows.Controls;
//using ContactManager.Model;
//using ContactManager.Presenters;

namespace GeneFolio.UserControls
{
    public partial class SideBar : UserControl
    {
        public SideBar()
        {
            InitializeComponent();
        }

        //public ApplicationPresenter Presenter
        //{
        //    get { return DataContext as ApplicationPresenter; }
        //}

        private void New_Click(object sender, RoutedEventArgs e)
        {
           // Presenter.NewContact();
        }

        private void ViewAll_Click(object sender, RoutedEventArgs e)
        {
           // Presenter.DisplayAllContacts();
        }

        private void OpenContact_Click(object sender, RoutedEventArgs e)
        {
            Button button = e.OriginalSource as Button;

            //if (button != null)
            //    Presenter.OpenContact(button.DataContext as Contact);
        }
    }
}